package com.topNews.base.web.record.action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.topNews.base.core.web.BaseAction;
import com.topNews.base.service.record.ActionRecordService;
import com.topNews.base.web.record.form.ActionRecordForm;
import com.topNews.entity.ActionRecord;

public class SearchActionRecordAction extends BaseAction{

	private ActionRecordService actionRecordService;
	
	
	public ActionRecordService getActionRecordService() {
		return actionRecordService;
	}


	public void setActionRecordService(ActionRecordService actionRecordService) {
		this.actionRecordService = actionRecordService;
	}


	@Override
	protected ActionForward process(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		System.out.println("sdfsdf");
		List<ActionRecord> actionRecordList= actionRecordService.searchActionRecord();
		request.setAttribute("actionRecordList", actionRecordList);
		
		return mapping.findForward(SUCCESS);
	}

}
